﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;
using System.Collections.ObjectModel;

namespace Xinnos.Lca.Yacht.Analyzer.View
{
    internal class RateRowViewModel:INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;
        public ObservableCollection<WorkBreakdownStructureViewModel> Sequences { get; set; }
        public ObservableCollection<ObjectRateViewModel> Rates { get; set; }

        public RateRowViewModel()
        {
            if (null == Sequences) Sequences = new ObservableCollection<WorkBreakdownStructureViewModel>();
            if (null == Rates) Rates = new ObservableCollection<ObjectRateViewModel>();
        }

        private void RaisePropertyChanged(string strPropertyName)
        {
            PropertyChangedEventHandler _handler = this.PropertyChanged;
            if (null != _handler) _handler(this, new PropertyChangedEventArgs(strPropertyName));
        }
    }
}
